import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';

import {DepartmentsComponent} from "./departments.component";
import {DepartmentAddComponent} from "./department-add/department-add.component";
import {DepartmentUpdateComponent} from "./department-update/department-update.component";

const routes: Routes = [
  {
    path :"",
    component : DepartmentsComponent
  },{
    path :"add",
    component : DepartmentAddComponent
  },{
    path : "update",
    component : DepartmentUpdateComponent
  }
];

@NgModule({
  imports: [RouterModule.forChild(routes)],
  exports: [RouterModule],
  providers: []
})
export class DepartmentsRoutingModule { }
